Vitamin D is present in the diet and can be synthesized in the skin from 7-dehydrocholesterol in the presence of ultraviolet light.
Vitamin D